package com.koron.order.experiment.mapper;

import com.koron.order.experiment.bean.po.ExperimentParamsPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (ExperimentParams)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-09 09:48:44
 */
public interface ExperimentParamsMapper {

    int insertOrUpdate(ExperimentParamsPo experimentParams);

    int insertOrUpdateBatch(@Param("list") List<ExperimentParamsPo> experimentParamsList);

    int insert(ExperimentParamsPo experimentParams);

    int insertBatch(@Param("list") List<ExperimentParamsPo> experimentParamsList);

    int update(ExperimentParamsPo experimentParams);

    int deleteById(String id);

    int deleteByBusinessId(@Param("experimentId") String experimentId, @Param("experimentEquipmentId") String experimentEquipmentId, @Param("equipmentId") String equipmentId);

    ExperimentParamsPo queryById(String id);

    List<ExperimentParamsPo> queryList(ExperimentParamsPo experimentParams);

}